import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})

app.$mount()
// #endif

// 引入Ajax方法，并且全局注册
 import { myRequest } from "./util/Api.js"
Vue.prototype.$myRequest =  myRequest 

// 过滤器的全局注册

Vue.filter('formateDate',function(date){
	const   NewDate = new Date(date)
	const  year = NewDate.getFullYear()
	const  month = (NewDate.getMonth() + 1).toString().padStart(2,0)
	const  day = NewDate.getDay().toString().padStart(2,0)
	
	return   year + '年'+ month + '月' + day
})

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif